package User;

import Operation.IOperation;
import book.BookList;

public abstract class User {
    private String name;
    public IOperation[] iOperations ;//这里没有分配空间
    public String getName() {
        return name;
    }

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();
    public void doOperation(int choice, BookList bookList) {
        this.iOperations[choice].work(bookList);
    }
}
